//
// NeL - bindings
// Copyright (C) 2010 Naush
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as
//published by the Free Software Foundation, either version 3 of the
//License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU Affero General Public License for more details.
//
//You should have received a copy of the GNU Affero General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>.
package org.ryzom.nel.misc;

public class CWindowDisplayer extends IDisplayer {
  private long swigCPtr;

  public CWindowDisplayer(long cPtr, boolean cMemoryOwn) {
    super(nelmiscJNI.CWindowDisplayer_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CWindowDisplayer obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nelmiscJNI.delete_CWindowDisplayer(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void create(String titleBar, boolean iconified, int x, int y, int w, int h, int hs, int fs, String fn, boolean ww, CLog log) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_0(swigCPtr, this, titleBar, iconified, x, y, w, h, hs, fs, fn, ww, CLog.getCPtr(log), log);
  }

  public void create(String titleBar, boolean iconified, int x, int y, int w, int h, int hs, int fs, String fn, boolean ww) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_1(swigCPtr, this, titleBar, iconified, x, y, w, h, hs, fs, fn, ww);
  }

  public void create(String titleBar, boolean iconified, int x, int y, int w, int h, int hs, int fs, String fn) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_2(swigCPtr, this, titleBar, iconified, x, y, w, h, hs, fs, fn);
  }

  public void create(String titleBar, boolean iconified, int x, int y, int w, int h, int hs, int fs) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_3(swigCPtr, this, titleBar, iconified, x, y, w, h, hs, fs);
  }

  public void create(String titleBar, boolean iconified, int x, int y, int w, int h, int hs) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_4(swigCPtr, this, titleBar, iconified, x, y, w, h, hs);
  }

  public void create(String titleBar, boolean iconified, int x, int y, int w, int h) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_5(swigCPtr, this, titleBar, iconified, x, y, w, h);
  }

  public void create(String titleBar, boolean iconified, int x, int y, int w) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_6(swigCPtr, this, titleBar, iconified, x, y, w);
  }

  public void create(String titleBar, boolean iconified, int x, int y) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_7(swigCPtr, this, titleBar, iconified, x, y);
  }

  public void create(String titleBar, boolean iconified, int x) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_8(swigCPtr, this, titleBar, iconified, x);
  }

  public void create(String titleBar, boolean iconified) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_9(swigCPtr, this, titleBar, iconified);
  }

  public void create(String titleBar) {
    nelmiscJNI.CWindowDisplayer_create__SWIG_10(swigCPtr, this, titleBar);
  }

  public void create() {
    nelmiscJNI.CWindowDisplayer_create__SWIG_11(swigCPtr, this);
  }

  public long createLabel(String value) {
    return nelmiscJNI.CWindowDisplayer_createLabel__SWIG_0(swigCPtr, this, value);
  }

  public long createLabel() {
    return nelmiscJNI.CWindowDisplayer_createLabel__SWIG_1(swigCPtr, this);
  }

  public void setLabel(long label, String value) {
    nelmiscJNI.CWindowDisplayer_setLabel(swigCPtr, this, label, value);
  }

  public boolean update() {
    return nelmiscJNI.CWindowDisplayer_update(swigCPtr, this);
  }

  public void setTitleBar(String arg0) {
    nelmiscJNI.CWindowDisplayer_setTitleBar(swigCPtr, this, arg0);
  }

  public void getWindowPos(SWIGTYPE_p_unsigned_int x, SWIGTYPE_p_unsigned_int y, SWIGTYPE_p_unsigned_int w, SWIGTYPE_p_unsigned_int h) {
    nelmiscJNI.CWindowDisplayer_getWindowPos(swigCPtr, this, SWIGTYPE_p_unsigned_int.getCPtr(x), SWIGTYPE_p_unsigned_int.getCPtr(y), SWIGTYPE_p_unsigned_int.getCPtr(w), SWIGTYPE_p_unsigned_int.getCPtr(h));
  }

}
